﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DalatCooking.Core;
using DalatCooking.Core.Helper;
public partial class Widgets_Cart : System.Web.UI.UserControl
{
    public int ModuleID { get; set; }
    public string Name { get; set; }
    public string Title { get; set; }
    public string Params { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);

        if (Session.GetShoppingCart() != null)
        {
            rptCart.DataSource = Session.GetShoppingCart().ShoppingCart;
            rptCart.DataBind();
        }
        this.Visible = (Session.GetShoppingCart() != null) ? true : false;
    }
}